#include "MyBatchSettingPrint.h"

#include <QtPrintSupport/qprinter.h>

MyBatchSettingPrint::MyBatchSettingPrint() {
    QPrinter printer;
    m_paperSize = QPrinter::A4;
    m_orientation = printer.orientation();
    m_color = printer.colorMode();
    m_resolution = printer.resolution();
    m_margingTop = printer.margins().top;
    m_margingBottom = printer.margins().bottom;
    m_margingLeft = printer.margins().left;
    m_margingRight = printer.margins().right;
}

MyBatchSettingPrint::MyBatchSettingPrint(const MyBatchSettingPrint &orig)
    : m_paperSize(orig.m_paperSize), m_orientation(orig.m_orientation), m_color(orig.m_color),
      m_resolution(orig.m_resolution), m_margingTop(orig.m_margingTop), m_margingBottom(orig.m_margingBottom),
      m_margingLeft(orig.m_margingLeft), m_margingRight(orig.m_margingRight) {
}

MyBatchSettingPrint::~MyBatchSettingPrint(){
}


void MyBatchSettingPrint::setPaperSize(const int& v){
    m_paperSize = v;
}

int MyBatchSettingPrint::getPaperSize() const{
    return m_paperSize;
}

void MyBatchSettingPrint::setOrientation(const int& v){
    m_orientation = v;
}

int MyBatchSettingPrint::getOrientation() const{
    return m_orientation;
}

void MyBatchSettingPrint::setColor(const int& v){
    m_color = v;
}

int MyBatchSettingPrint::getColor() const{
    return m_color;
}

void MyBatchSettingPrint::setResolution(const int& v){
    m_resolution = v;
}

int MyBatchSettingPrint::getResolution() const{
    return m_resolution;
}

void MyBatchSettingPrint::setMargingTop(const double& v){
    m_margingTop = v;
}

double MyBatchSettingPrint::getMargingTop() const{
    return m_margingTop;
}

void MyBatchSettingPrint::setMargingBottom(const double& v){
    m_margingBottom = v;
}

double MyBatchSettingPrint::getMargingBottom() const{
    return m_margingBottom;
}

void MyBatchSettingPrint::setMargingLeft(const double& v){
    m_margingLeft = v;
}

double MyBatchSettingPrint::getMargingLeft() const{
    return m_margingLeft;
}

void MyBatchSettingPrint::setMargingRight(const double& v){
    m_margingRight = v;
}

double MyBatchSettingPrint::getMargingRight() const{
    return m_margingRight;
}
